<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    <channel>
        <title>Global Internet Business Solutions ~ GIBS</title> 
        <link>https://gibs.com</link> 
        <description>RSS feeds for Global Internet Business Solutions ~ GIBS</description> 
        <ttl>60</ttl> <item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/21/DNN_Get_User_DisplayName#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=21</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=21&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN Get User DisplayName</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/21/DNN_Get_User_DisplayName</link> 
    <description>private string GetDisplayName(int PortalId, int UserId)
{
&amp;nbsp;&amp;nbsp; &amp;nbsp;string UserDisplayName = &amp;quot;&amp;quot;;
&amp;nbsp;&amp;nbsp; &amp;nbsp;DotNetNuke.Entities.Users.UserInfo userInfo = DotNetNuke.Entities.Users.UserController.GetUserById(PortalId, UserId);
&amp;nbsp;&amp;nbsp; &amp;nbsp;if (userInfo != null)
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;UserDisplayName = userInfo.DisplayName;
&amp;nbsp;&amp;nbsp; &amp;nbsp;return UserDisplayName;
}
&amp;nbsp;
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 23 Jan 2020 12:59:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:21</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/22/Token_Replacement#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=22</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=22&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Token Replacement</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/22/Token_Replacement</link> 
    <description>public string FixTokens(string _myOriginal, string _myToken, string _myReplacement)
{

&amp;nbsp;try
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;string _ReturnValue = &amp;quot;&amp;quot;;

&amp;nbsp;&amp;nbsp;_ReturnValue = _myOriginal.ToString().Replace(_myToken, _myReplacement.ToString()).ToString();

&amp;nbsp;&amp;nbsp;return _ReturnValue;
&amp;nbsp;}
&amp;nbsp;catch (Exception ex)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;Exceptions.ProcessModuleLoadException(this, ex);
&amp;nbsp;&amp;nbsp;return ex.ToString();
&amp;nbsp;}
}
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 22 Jan 2020 11:44:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:22</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/23/Get_DNN_User_Roles_for_Dropdown_List#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=23</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=23&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Get DNN User Roles for Dropdown List </title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/23/Get_DNN_User_Roles_for_Dropdown_List</link> 
    <description>public void GetRoles()
{
&amp;nbsp;DotNetNuke.Security.Roles.RoleController rc = new DotNetNuke.Security.Roles.RoleController();

&amp;nbsp;var myRoles = rc.GetRoles(this.PortalId);
&amp;nbsp;//&amp;nbsp; myRoles
&amp;nbsp;ddlRoles.DataSource = myRoles;
&amp;nbsp;ddlRoles.DataTextField = &amp;quot;RoleName&amp;quot;;
&amp;nbsp;ddlRoles.DataValueField = &amp;quot;RoleName&amp;quot;;
&amp;nbsp;ddlRoles.DataBind();

&amp;nbsp;// ADD FIRST (NULL) ITEM
&amp;nbsp;ListItem item = new ListItem();
&amp;nbsp;item.Text = &amp;quot;-- Select Role to Assign --&amp;quot;;
&amp;nbsp;item.Value = &amp;quot;&amp;quot;;
&amp;nbsp;ddlRoles.Items.Insert(0, item);
&amp;nbsp;// REMOVE DEFAULT ROLES
&amp;nbsp;ddlRoles.Items.Remove(&amp;quot;Administrators&amp;quot;);
&amp;nbsp;ddlRoles.Items.Remove(&amp;quot;Registered Users&amp;quot;);
&amp;nbsp;ddlRoles.Items.Remove(&amp;quot;Subscribers&amp;quot;);

&amp;nbsp;// REPORTS ROLE
&amp;nbsp;ddlReportsRoles.DataSource = myRoles;
&amp;nbsp;ddlReportsRoles.DataBind();

&amp;nbsp;// ADD FIRST (NULL) ITEM
&amp;nbsp;ListItem item1 = new ListItem();
&amp;nbsp;item1.Text = &amp;quot;-- Select Role to View Reports --&amp;quot;;
&amp;nbsp;item1.Value = &amp;quot;&amp;quot;;
&amp;nbsp;ddlReportsRoles.Items.Insert(0, item1);
&amp;nbsp;// REMOVE DEFAULT ROLES
&amp;nbsp;ddlReportsRoles.Items.Remove(&amp;quot;Administrators&amp;quot;);
&amp;nbsp;ddlReportsRoles.Items.Remove(&amp;quot;Registered Users&amp;quot;);
&amp;nbsp;ddlReportsRoles.Items.Remove(&amp;quot;Subscribers&amp;quot;);

&amp;nbsp;// MERGE ROLE

&amp;nbsp;ddlMergeRoles.DataSource = myRoles;
&amp;nbsp;ddlMergeRoles.DataBind();

&amp;nbsp;// ADD FIRST (NULL) ITEM
&amp;nbsp;item1.Value = &amp;quot;Select Role to Allow Merge&amp;quot;;
&amp;nbsp;ddlMergeRoles.Items.Insert(0, item1);
&amp;nbsp;// REMOVE DEFAULT ROLES
&amp;nbsp;ddlMergeRoles.Items.Remove(&amp;quot;Administrators&amp;quot;);
&amp;nbsp;ddlMergeRoles.Items.Remove(&amp;quot;Registered Users&amp;quot;);
&amp;nbsp;ddlMergeRoles.Items.Remove(&amp;quot;Subscribers&amp;quot;);

}
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 19 Jan 2020 13:20:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:23</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/61/Check_If_Profile_Property_Exists#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=61</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=61&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Check If Profile Property Exists</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/61/Check_If_Profile_Property_Exists</link> 
    <description>Check if a DNN TrueFalse (bool) profile property exists and if it doesn&amp;#39;t create a new one

USE:

CheckProfilePropertyExistsTrueFalse(&amp;quot;DoNotMail&amp;quot;).ToString();

&amp;nbsp;


public string CheckProfilePropertyExistsTrueFalse(string propertyName)
{
	string value = null;

	ProfilePropertyDefinition ppd = ProfileController.GetPropertyDefinitionByName(this.PortalId, propertyName.ToString());
 //  ProfileController.AddPropertyDefinition()
	if (ppd == null)
	{
		// IT DOESN&amp;#39;T EXIST - -  CREATE IT

		DotNetNuke.Common.Lists.ListController objListCtrl = new DotNetNuke.Common.Lists.ListController();

		DotNetNuke.Entities.Profile.ProfilePropertyDefinition objDef = new DotNetNuke.Entities.Profile.ProfilePropertyDefinition();
		DotNetNuke.Entities.Profile.ProfileController objProfileController = new DotNetNuke.Entities.Profile.ProfileController();

		objDef.DataType = objListCtrl.GetListEntryInfo(&amp;quot;DataType&amp;quot;, &amp;quot;TrueFalse&amp;quot;).EntryID;
		objDef.Length = 50;
		objDef.PortalId = this.PortalId;
		objDef.PropertyName = propertyName.ToString(); // This is your property Name
		objDef.Required = false;
		objDef.DefaultValue = &amp;quot;false&amp;quot;;
		objDef.ViewOrder = -1;
		objDef.DefaultVisibility = DotNetNuke.Entities.Users.UserVisibilityMode.AdminOnly;
		objDef.Visible = true;
		objDef.PropertyCategory = &amp;quot;Donor&amp;quot;;
		objDef.ReadOnly = false;
		
		DotNetNuke.Entities.Profile.ProfileController.AddPropertyDefinition(objDef);

		value = &amp;quot;Profile Property Created for &amp;quot; + propertyName.ToString() + &amp;quot;!&amp;quot;;
	}
	else
	{
		value = &amp;quot;Profile Property Exists!&amp;quot;;

	}
	return value;
}

</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 24 Dec 2019 12:30:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:61</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/32/Return_Boolean_as_Yes_or_No#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=32</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=32&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Return Boolean as Yes or No</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/32/Return_Boolean_as_Yes_or_No</link> 
    <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string ReturnBooleanAsYes_or_No(Boolean choice)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (choice)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (&amp;quot;Yes&amp;quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (&amp;quot;No&amp;quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sat, 02 Feb 2019 17:01:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:32</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/99/Generate_QueryString_Parameters#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=99</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=99&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Generate QueryString Parameters</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/99/Generate_QueryString_Parameters</link> 
    <description>        protected static string GenerateQueryStringParameters(HttpRequest request, params string[] queryStringKeys)
        {
            StringBuilder queryString = new StringBuilder(64);
            foreach (string key in queryStringKeys)
            {
                if (request.QueryString[key] != null)
                {
                    if (queryString.Length &amp;gt; 0)
                    {
                        queryString.Append(&quot;&amp;amp;&quot;);
                    }

                    queryString.Append(key).Append(&quot;=&quot;).Append(request.QueryString[key]);
                }
            }

            return queryString.ToString();
        }

-</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 13 Apr 2014 09:34:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:99</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/102/Get_the_First_Day_of_Next_Month_in_C#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=102</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=102&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Get the First Day of Next Month in C#</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/102/Get_the_First_Day_of_Next_Month_in_C</link> 
    <description>        public static DateTime GetFirstDayOfNextMonth(DateTime startDate)

        {

            if (startDate.Month == 12) // its end of year , we need to add another year to new date: 


            {

                startDate = new DateTime((startDate.Year + 1), 1, 1);

            }

            else


            {

                startDate = new DateTime(startDate.Year, (startDate.Month + 1), 1);

            }

            return startDate;

        }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Fri, 10 Jan 2014 11:40:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:102</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/110/iDataReader_loop_to_bind_custom_values_to_a_CheckBoxList#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=110</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=110&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>iDataReader loop to bind custom values to a CheckBoxList</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/110/iDataReader_loop_to_bind_custom_values_to_a_CheckBoxList</link> 
    <description>Bind values from a custom table to a CheckBoxList bound from a DNN list
public void UpdateTrueFalseQuestions()
        {

            try
            {
                FBClientsController controller = new FBClientsController();
                FBClientsInfo item = new FBClientsInfo();

                for (int i = 0; i &lt; cblClientTrueFalseQuestions.Items.Count; i++)
                {
                        item.TfQuestion = cblClientTrueFalseQuestions.Items[i].Value.ToString();
                        item.TfAnswer = cblClientTrueFalseQuestions.Items[i].Selected;
                        item.ClientID = Int32.Parse(hidClientID.Value.ToString());
                        item.CreatedByUserID = this.UserId;
                        controller.FBClientsTrueFalseQuestions_InsertUpdate(item);
                }

                lblMessage.Text = Localization.GetString("ClientUpdateSuccessful", this.LocalResourceFile);
                lblMessage.Visible = true;

            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }

        }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 17 Feb 2013 15:20:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:110</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/114/Check_if_an_image_exists_-_substitute_missing_images#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=114</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=114&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Check if an image exists - substitute missing images</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/114/Check_if_an_image_exists_-_substitute_missing_images</link> 
    <description>public string get_image(string product_ID)
{
&nbsp;string functionReturnValue = null;
&nbsp;HttpWebRequest req = default(HttpWebRequest);
&nbsp;req = WebRequest.Create("http://www.yoursite.com/Images/products/" + product_ID + "_thumb.jpg");
&nbsp;HttpWebResponse resp = default(HttpWebResponse);
&nbsp;try {
&nbsp;&nbsp;resp = req.GetResponse();
&nbsp;&nbsp;functionReturnValue = "&lt;a href='http://www.yoursite.com/Images/products/" + product_ID.Trim() + ".jpg' target='_blank'&gt;&lt;IMG border=0 src='http://www.yoursite.com/upl_data/products/" + product_ID.Trim() + "_thumb.jpg' /&gt;&lt;/a&gt;";
&nbsp;} catch (Exception ex) {
&nbsp;&nbsp;functionReturnValue = "&lt;IMG border=0 src='images/noimage.jpg' /&gt;";
&nbsp;}
&nbsp;return functionReturnValue;
&nbsp;//return functionReturnValue;
}&nbsp;
&nbsp;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 06 Dec 2012 12:03:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:114</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/126/DNN_E-Mail_Address_Lookup#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=126</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=126&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN E-Mail Address Lookup</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/126/DNN_E-Mail_Address_Lookup</link> 
    <description>Check to verify if an e-mail address has been previously registered:
public bool LookupEmail(string EmailAddress)
{
&amp;nbsp;try
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;int intRecords = 0;
&amp;nbsp;&amp;nbsp;ArrayList u = new ArrayList();
&amp;nbsp;&amp;nbsp;u = UserController.GetUsersByEmail(this.PortalId, EmailAddress, 0, 1, ref intRecords);
&amp;nbsp;&amp;nbsp;if (u.Count &amp;gt; 0)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;return false;
&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp; 
&amp;nbsp;}
&amp;nbsp;catch (Exception ex)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;Exceptions.ProcessModuleLoadException(this, ex);
&amp;nbsp;&amp;nbsp;return false;
&amp;nbsp;}
}</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 19 Jan 2012 10:50:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:126</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/127/Splitting_a_FullName_field_into_a_FirstName_and_LastName#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=127</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=127&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Splitting a FullName field into a FirstName and LastName</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/127/Splitting_a_FullName_field_into_a_FirstName_and_LastName</link> 
    <description>public void NameSplit(string name)
{
&amp;nbsp;if (name.Length &amp;gt; 0)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;// Check for a comma
&amp;nbsp;&amp;nbsp;if (name.IndexOf(&quot;,&quot;) &amp;gt; 0)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;LastName = name.Substring(0, name.IndexOf(&quot;,&quot;)).Trim();
&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstName = name.Substring(name.IndexOf(&quot;,&quot;) + 1).Trim();
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;else if (name.IndexOf(&quot; &quot;) &amp;gt; 0)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstName = name.Substring(0, name.IndexOf(&quot; &quot;)).Trim();
&amp;nbsp;&amp;nbsp;&amp;nbsp;LastName = name.Substring(name.IndexOf(&quot; &quot;) + 1).Trim();
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstName = &quot;-&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;LastName = name;
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;}
}</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 19 Jan 2012 10:35:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:127</guid> 
    
</item>

    </channel>
</rss>